﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LB.Business.Repositories;
using LB.DataAccess;
using LB.Business.Security.Entities;
using System.Collections;

namespace LB.Business.Security.Repositories
{
    public class ModuleRepository : Repository
    {
        public ModuleRepository(ICommonDao commonDao)
            : base(commonDao)
        { }


        public IList<Base_Module> GetList(string sysno)
        {
            string hql = string.Format("from Base_Module where Pguid='?'", sysno);
            IList list = CommonDao.GetByHql(hql, new object[] { sysno });
            return list.OfType<Base_Module>().ToList();
        }
    }
}
